package com.ms.seguridad.infrastructure.persistence.crypt;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.DigestUtils;

/**
 * User: AW
 * Date: 24/02/13
 */
public class NcCrypt {
    private static final Logger LOG = LoggerFactory.getLogger(NcCrypt.class);

    public static String encryptPassword(String strpassword) {
        byte[] passwordArray = strpassword != null ? strpassword.getBytes() : null;
        return passwordArray != null ? DigestUtils.md5DigestAsHex(passwordArray) : null;
    }

    public static String decryptPassword(String strpassword) {
        return null;
    }
}
